package cn.zhuzizcc.userauthpassword.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HelloController
 * Description: 授权码模式
 * date: 2020/9/29 10:41
 * @author zhuzi
 * @since JDK 1.8
 */
@RestController
@CrossOrigin(value = "*")
public class AuthCodeHellController {
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
    @GetMapping("/admin/hello")
    public String admin() {
        return "admin";
    }
}